<?php

namespace App\Enums;

class PetEnum
{

    //配置操作锁(防止修改和兑换冲突)
    const PET_GIFT_CONFIG_UPDATE_LOCK = 'pet:update:config_'; //拼接props_gift_config 的id


    //用户兑换锁 防止并发操作
    const USER_GIFT_EXCHANGE_LOCK = 'pet:exchange:user_'; //拼接user_id


    const PROPS_GAME_PET = 1;//game 映射 1萌兽盲盒

    const PROPS_GAME_NAME = [
        self::PROPS_GAME_PET => '萌兽盲盒'
    ];

    const PROPS_GAME_URL =[
        self::PROPS_GAME_PET=> [
            'path'=>'/moduleGame/PetGameDialogFragment',
            'game_id'=>11,
        ],

    ];

}